package com.zyx.yygh.hosp.repository;

import com.zyx.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zyx
 * @version 1.0
 * @date 2022/1/20 020 17:57
 */

@Repository
public interface HospitalRepository extends MongoRepository<Hospital, String> {
    /**
     * 判断数据是否存在
     */
    Hospital getHospitalByHoscode(String hoscode);

    List<Hospital> findHospitalByHosnameLike(String hosname);
}
